#include<stdio.h>
main()
{
    int num,rem,a[100],i,j;
    printf("enter the decimal number= ");
    scanf("%d",&num);
    i=0;
    while(num>0)
    {
        a[i]=num%2;
        num/=2;
        i++;
    }
    
    printf("The binary number is ");
    for(j=i-1;j>=0;j--)
    printf("%d",a[j]);
    printf("\n");
}
